package StudyCode.summary.zipfile;

import java.io.IOException;
import java.io.RandomAccessFile;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class Reads4BytesFromRandomAccessFile {
	public static long readUINT32(RandomAccessFile raf) throws IOException {
		long result = 0;
		for (int i = 0; i < 4; i++) {

			result <<= 8;
			result |= (long) raf.read();
		}
		return result;
	}
}
